package de.tabuma.soap.entity.xsd;

import java.util.*;
import java.io.*;
import javax.jdo.annotations.*;

import de.tabuma.soap.annotation.*;

/**
 * This class represents an element of an wsdl document called &quot;annotation&quot;.
 * @author $Author: alefen $
 * @version $Revision: 1.1 $
 * @since $Date: 2009/12/30 02:57:12 $
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
@SoapClassDefinition(@SoapClassMapping(mappingString="annotation",mappingType=SoapClassMapping.MappingType.XSD))
public class XsAnnotation implements Serializable {

    public XsAnnotation() {
        this.xsAppinfoOrXsDocumentation = new ArrayList<Long>();
    }

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
    public Long getId() {
        return id;
    }

    @Persistent
    @SoapFieldDefinition(
        {
            @SoapFieldClass(classDefinition=XsAppInfo.class),
            @SoapFieldClass(classDefinition=XsDocumentation.class)
    })
    protected List<Long> xsAppinfoOrXsDocumentation;
    public List<Long> getXsAppinfoOrXsDocumentation() {
        if(this.xsAppinfoOrXsDocumentation==null) {
            this.xsAppinfoOrXsDocumentation = new ArrayList<Long>();
        }
        return this.xsAppinfoOrXsDocumentation;
    }
    public void setXsAppinfoOrXsDocumentation(List<Long> xsAppinfoOrXsDocumentation) {
        this.xsAppinfoOrXsDocumentation = xsAppinfoOrXsDocumentation;
    }
}
